//
//  FLLMacro.h
//  FLLGodOfCookery
//
//  Created by LL.F on 16/8/27.
//  Copyright © 2016年 LL.F. All rights reserved.
//

#ifndef FLLMacro_h
#define FLLMacro_h

// 调试打印: 系统生成的宏 默认DEBUG环境下 DEBUG=1 走调试状态即所有的NSLog都走 Release环境下就是发布状态 所有的NSLog都不走了
#ifdef DEBUG
#define NSLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define NSLog(...)
#endif


#define IS_IPHONE           (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
#define IS_IPHONE_4         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 480.0f)
#define IS_IPHONE_5         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f)
#define IS_IPHONE_5         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 568.0f)
#define IS_IPHONE_5_OR_HIGHER         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height >= 568.0f)
#define IS_IPHONE_6         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 667.0f)
#define IS_IPHONE_6_PLUS         (IS_IPHONE && [[UIScreen mainScreen] bounds].size.height == 736.0f)

#define SCREEN_RECT         [UIScreen mainScreen].bounds
#define SCREEN_SIZE         [UIScreen mainScreen].bounds.size
#define SCREEN_WIDTH        SCREEN_SIZE.width
#define SCREEN_HEIGHT       SCREEN_SIZE.height

// 自定义橙色主题Color
#define FLLOrangeColor [UIColor colorWithRed:1.00 green:0.45 blue:0.32 alpha:1.00]
#define FLLWhiteColor [UIColor whiteColor]
#define FLLLightGrayColor [UIColor colorWithRed:0.97 green:0.97 blue:0.97 alpha:1.00];



// 随机色
#define FLLAutoColor [UIColor colorWithRed:(arc4random() % 256 / 255.0 )green:(arc4random() % 256 / 255.0 ) blue:(arc4random() % 256 / 255.0 ) alpha:1.0];

// 宏定义Item的间距
#define CellMargin 2 * kWidthScale
#define CellMargin_5 5 * kWidthScale
#define CellMargin_10 10 * kWidthScale
#define CellMargin_20 20 * kWidthScale
#define CellMargin_30 30 * kWidthScale

/* 宏定义适配比例 */
#define kWidthScale [UIScreen mainScreen].bounds.size.width / 375
#define kHeightScale [UIScreen mainScreen].bounds.size.height / 667

#import "SelfSizeTool.h"
#import "ZWYNetTool.h"
#import "Masonry.h"
#import "MJRefresh.h"
#import "UIImageView+WebCache.h"
#import "FLLAutoLayout.h"
#import "UILabel+FLLSetPropety.h"
#import "NeteaseLayout.h"
#import "GetHeightTools.h"

#endif /* FLLMacro_h */
